package com.hanson.demo.actors.biz_actor;

import com.hanson.demo.actors.ActorCtx;
import com.hanson.demo.actors.ActorSystemServiceContext;
import com.hanson.demo.actors.ContextAwareActor;
import com.hanson.demo.actors.Message;

public class MyOrderActor extends ContextAwareActor {

	public MyOrderActor(ActorSystemServiceContext systemContext)  {
		super(systemContext);
	}	
	@Override
	public void initMail(ActorCtx ctx) {
		try {
			super.initMail(ctx);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * 处理业务
	 */
	@Override
	protected boolean doProcess(Object message) {
		if (message instanceof Message) {
			System.out.println("MyOrderActor message: " + message);
		}
		return false;
	}

}
